package com.ray.bean;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

//订单bean
@Data
public class OrderBean implements Cloneable,Serializable {
	private String id;//主键
	private String orderId;//订单编号
	private Integer orderCount;//订单数量
	private String color;//订单颜色
	private int duanChu;//可短出数
	private String userName;//短出设置人
	private String factoryId;//工厂型号
	private String customer;//客户
	private String customerId;//客户编号
	private String customerOrderId;//客户订单编号
	private String machining;//加工对象
	private Integer rowIndex;//行号
	private String jiaoDate;//交货日期
	private Integer feedCount;//投料数
	private Integer turnover;//投料数
	private String detail;//客户详细要求
	private String chiCun;//生产尺寸
	private String quanImg;//圈图
	private String tuiImg;//腿图
	private Integer sort;//排序
	private String company;//公司
	private String deptId;//部门id
	private String deptName;//部门id
	private String companyOrderId;//公司订单编号
	private int status;//审核状态
	private String xiaDanDate;//下单日期
	private String keKuanHao;//客款号
	private int dutyStatus;//拖期状态 1 已拖期   2 十天内即将拖期
	private double deptDayCapacity;//部门日产能
	private double productionCycle;//部门流程周期
	private long outCount;//出库数
	private int restType;//休息类型
	private int putOutStatus;//外协状态   0 无外协  1 完成  2 未完成
	private String frameType;//订单架型
	private Integer quality;//合格数
	private String orderType;//订单类型
	private String colorDescription;
	
	
	private List<WorkshopProductionCycleBean> wpcbList;//车间list
	private int purchaseStatus;//采购状态 0 未采购 1 已采购 2 采购不完全
	private int inStatus;//入库状态 同上

	private List<OrderMaterial> orderMaterialList;
	
	@Data
	public static class OrderMaterial implements Serializable{
		private String materialType;
		private String color;
		private String colorDescription;
		private Double procurementCycles;//采购周期
		private Integer orderCount;//物料对应订单数
		private String orderId;//订单编号
		private String lineNo;//行号
		private Double useCount;//投料数
		private Double inCount;//入库数
		private Double recevieCount;//已领料数
		private Double purchaseCount;//采购数
		private Double stockCount;//库存数
	}
	@Override
	public OrderBean clone() throws CloneNotSupportedException {
		OrderBean stu = null;  
	        try{  
	            stu = (OrderBean)super.clone();  
	        }catch(CloneNotSupportedException e) {  
	            e.printStackTrace();  
	        }  
	     return stu;  
	}
}
